/**
 * @Author: Afun
 */
import { exSelect, exInput, exSwitch, exRadioGroup } from '@ve/common/components/extension'
// import { constantTip } from '@ve/common/components/extension/tip'
export default {
  VERSION: '20220729',
  type: 'uiPdaCheckBox',
  name: '复选框',
  icon: 'checkbox-circle-line',
  //数据别名
  // dataName: 'uiPdaCheckBox_data',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  extension: {
    model: exInput('复选框Model', 'check_name'),
    // checkBoxModel: exInput('复选框Model', 'checked_name'),
    label: exInput('标签', '复选框'),
    // defaultValue: exInput('默认值', '', constantTip()),
    disabled: exSwitch('禁用', false),
    hidden: exSwitch('隐藏', false),
    checkBoxColor:
      // exColorPicker('复选框选中颜色', '#000000'),
      exSelect('复选框选中颜色', '', [
        { value: '#1989fa', label: '默认' },
        { value: '#082E54', label: '靛青' },
        { value: 'rgb(42, 119, 182)', label: '深蓝' },
        { value: '#00FF00', label: '绿色' },
        { value: '#C0C0C0', label: '灰色' },
        { value: '#FFD700', label: '黄色' },
        { value: '#ee0a24', label: '红色' },
      ]),
    checkBoxType: exRadioGroup('复选框文本位置', 'left', [
      {
        value: 'left',
        label: '左',
      },
      {
        value: 'right',
        label: '右',
      },
    ]),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  // logicInstruction: [],
}
